<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head th:replace="layouts::header"></head>
<body>

<div class="container">
    <form action="/projects/save"th:object="${project}" method="POST">
        <input type="text" placeholder="项目名称" th:filed="*{name}">
        <select th:filed="*{stage}">
            <option value="未开始">未开始</option>
            <option value="进行中">进行中</option>
            <option value="已完成">已完成</option>
        </select>
        <textarea type="text" placeholder="输入项目描述" th:filed="*{description}"></textarea>
        <select th:filed="*{students}"multiple="multiple">
            <option th:each="student : ${allStudents}" th:value="${student.studentId}" th:text="${student.name}"></option>

        </select>
        <button type="submit">新建项目</button>
    </form>
</div>
</body>
</html>